From c3d388b2dd72b690dcc926c8847b46d8c697e5b6 Mon Sep 17 00:00:00 2001 From: Kevin Albertson Date: Mon, 15 Jan 2024 10:03:18 -0500 Subject: [PATCH] add `Using with CMake` instructions --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 2923e8c..14b3330 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,16 @@ cmake -S . -B build cmake --build build ``` +## Using with CMake + +A CMake Config-file package is provided. To use utf8proc in a CMake project: + +```cmake +add_executable (app app.c) +find_package (utf8proc 2.9.0 REQUIRED) +target_link_libraries (app PRIVATE utf8proc::utf8proc) +``` + ### Using other compilers The included `Makefile` supports GNU/Linux flavors and MacOS with `gcc`-like compilers; Windows users will typically use `cmake`. -- 2.39.5